package org.example.myleet.p830;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(Assert.isPass(new int[][]{{3, 6}}, solution.largeGroupPositions("abbxxxxzzy")));
        Assert.isTrue(Assert.isPass(new int[][]{}, solution.largeGroupPositions("abc")));
        Assert.isTrue(Assert.isPass(new int[][]{{3, 5},{6,9},{12,14}}, solution.largeGroupPositions("abcdddeeeeaabbbcd")));
        Assert.isTrue(Assert.isPass(new int[][]{}, solution.largeGroupPositions("aba")));
        Assert.isTrue(Assert.isPass(new int[][]{}, solution.largeGroupPositions("a")));
        Assert.isTrue(Assert.isPass(new int[][]{{0,2}}, solution.largeGroupPositions("aaa")));
    }
}
